# Maintainer: Alexander Epaneshnikov <alex19ep@archlinux.org>
# Contributor: Brad Fanella <cesura@archlinux.org>
# Contributor: Martin Wimpress <code@flexion.org>

pkgname=python-caja
pkgver=1.27.0
pkgrel=2
pkgdesc="Python binding for Caja, to allow Caja property page and menu item extensions to be written in Python"
url="https://mate-desktop.org"
arch=('loong64' 'x86_64')
license=('GPL')
depends=('caja' 'python-gobject')
makedepends=('intltool')
source=("https://pub.mate-desktop.org/releases/${pkgver%.*}/python-caja-${pkgver}.tar.xz")
sha256sums=('b71852df292479229fd3ca013f23c0ee9a57997ffa108edd36e122e454f2d636')

build() {
    	cd "python-caja-${pkgver}"
	./configure \
	            --prefix=/usr

	#https://bugzilla.gnome.org/show_bug.cgi?id=656231
	sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool

 make
}

package() {
	cd "python-caja-${pkgver}"
	make DESTDIR="${pkgdir}" install
}
